#define _CRT_SECURE_NO_WARNINGS
#include"string.h"

namespace bit
{
	void test_string()
	{
		string s1;
		string s2("hello world");
		cout << s1.c_str() << endl;
		cout << s2.c_str() << endl;


		void string::reserve(size_t n)
		{
			if (n > _capacity)
			{

			}
		}
		for (size_t i = 0; i < s2.size(); i++)
		{
			s2[i] += 2;
		}
		cout << s2.c_str() << endl;

		for (auto e : s2)
		{
			cout << e << " ";
		}

		string::iterator it = s2.begin();
		while (it != s2.end())
		{
			cout << *it << " ";
			++it;
		}
		cout << endl;


	}
}